package com.wishu.finance.controller;

import com.wishu.finance.config.AjaxResult;
import com.wishu.finance.enums.FinanceProductTypeEnum;
import com.wishu.finance.service.TJrProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("product")
public class FinanceProductController {

    @Autowired
    TJrProductService tJrProductService;

    @GetMapping("productById")
    public AjaxResult productById(Long id) {
        return AjaxResult.success(tJrProductService.productById(id, FinanceProductTypeEnum.SFLOAN.getIndex()));
    }
}
